package com.interview;


import java.util.ArrayList;
import java.util.List;

public class ArrayListTest {
    public static void main(String[] args) {
        List list = new ArrayList();
        list.add("张三");
        list.add("李四");
        list.add("王五");
        System.out.println(list);

        String[] str = new String[3];
        str[0] = "张飞";
        str[1] = "关羽";
        str[2] = "刘备";
        for (String s : str){
            System.out.println(s);
        }
    }
}
